package com.fs.web.base.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.fs.common.pojo.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Map;

/**
 * @author ACE
 * @desc 用户mapper
 * @creationTime 2019-04-03 20:44
 * @projectName weixinframe
 * @packageName com.fs.base.mapper
 */
@Mapper
public interface UserMapper extends BaseMapper<User> {

    User findByAccountAndPwd(@Param("account") String account,@Param("pwd") String pwd);

    Page<User> findList(IPage page, @Param("map")Map map);
}
